<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <f:metadata>
        <f:viewParam name="idEv" value="#{eventBean.eventViewedId}"/>
        <f:viewAction action="#{eventBean.loadEvent}"/>
    </f:metadata>
    <h:head>
        <title>Event #{eventBean.eventViewed.title}</title>
    </h:head>
    <h:body>
        <h:form>
            <h:outputLabel value="#{eventBean.invited}"/>
            <p:commandButton id="delete" value="Delete" disabled="#{eventBean.checkCreator()}" />
            <p:commandButton id="modify" value="Modify" disabled="#{eventBean.checkCreator()}" action="modifyEvent"/>
            <p:commandButton id="answer_yes" value="YES, I will join" disabled="#{eventBean.checkPaticipant()}"/>
            <p:commandButton id="answer_no"  value="NOPE, I won't join" disabled="#{eventBean.checkPaticipant()}"/>
            <h:link outcome="home" value="Back home"/>
            
        </h:form>
    </h:body>
</html>

